package MIPS;

public class Binary extends Mips {
    private String cal_a;
    private String cal_b;

    public Binary(Operate operate, String cal_a, String cal_b) {
        super(operate);
        this.cal_a = cal_a;
        this.cal_b = cal_b;
    }

    public String toString() {
        if (getOp().equals(Operate.MFHI) || getOp().equals(Operate.MFLO)) {
            return opToString() + " " + cal_a + "\n";
        }
        return opToString() + " " + cal_a + " " + cal_b + "\n";
    }
}
